/**
 * 定时任务相关配置
 */


/**
 * 触发器状态
 */
export enum TriggerState {
  NORMAL = 'NORMAL',
  NONE = 'NONE',
  PAUSED = 'PAUSED',
  COMPLETE = 'COMPLETE',
  ERROR = 'ERROR',
  BLOCKED = 'BLOCKED',
}

/**
 * 触发器状态转换
 */
export const TRIGGER_STATE_LABEL = [
  {
    state: TriggerState.NORMAL,
    label: '正常',
  },
  {
    state: TriggerState.NONE,
    label: '不存在',
  },
  {
    state: TriggerState.PAUSED,
    label: '暂停',
  },
  {
    state: TriggerState.COMPLETE,
    label: '完成',
  },
  {
    state: TriggerState.ERROR,
    label: '错误',
  },
  {
    state: TriggerState.BLOCKED,
    label: '阻塞',
  },
]

/**
 * 任务组
 * ENABLE: 该任务可以修改
 * DISABLE: 该任务不可以修改
 */
export enum TaskGroup {
  ENABLE = 'ENABLE',
  DISABLE = 'DISABLE'
}